package com.lhz.project.system.model.vo.base;

import com.lhz.framework.security.token.MenuTokenInfo;
import com.lhz.project.system.model.entity.auth.User;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created by LiGezZ
 * Date on 2021/4/16 17:44
 */
@Data
@Schema(description = "登录信息")
public class LoginVo implements Serializable {
    //token头信息
    @Schema(description = "token名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String tokenName;
    //token内容
    @Schema(description = "token", requiredMode = Schema.RequiredMode.REQUIRED)
    private String token;
    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String userName;

    @Schema(description = "用户信息", requiredMode = Schema.RequiredMode.REQUIRED)
    private User userInfo;

    @Schema(description = "菜单信息", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<MenuTokenInfo> menu;

    @Schema(description = "角色信息", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> roleList;

    @Schema(description = "权限信息", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> permissionList;
}
